package com.globalwave.common.service;

import com.globalwave.common.ArrayOrderList;
import com.globalwave.common.ArrayPageList;
import com.globalwave.common.entity.Field;
import com.globalwave.common.entity.FieldCriterion;

public interface FieldService {
    
    public ArrayPageList<Field> query(
            FieldCriterion fieldCriterion, 
            int pageIndex, 
            int pageSize,
            ArrayOrderList orderList) 
    throws Exception ;

    
    public ArrayPageList<Field> queryByViewId(Long viewId)throws Exception ;
    
    
    public Field create(Field field) throws Exception ;
    public void update(Field field) throws Exception ;
    public void delete(Field field) throws Exception ;
    public void deleteAll(Long[] fieldIds) throws Exception ;

    public int deleteByViewId(Long viewId) throws Exception ;
    public int deleteByViewIds(Long[] viewIds) throws Exception ;
    
}
